package com.twetec.cms.service.website.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.twetec.cms.dao.mapper.ucenter.UserMapper;


import com.twetec.cms.model.po.user.UserPO;
import com.twetec.cms.model.po.website.ColumnPO;
import com.twetec.cms.model.po.website.SitePO;
import com.twetec.cms.dao.mapper.website.SiteMapper;
import com.twetec.cms.model.vo.website.SitePageListVO;
import com.twetec.cms.model.vo.website.SiteVO;
import com.twetec.cms.service.website.ColumnService;
import com.twetec.cms.service.website.SiteService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xxg.base.module.Operater;
import org.apache.commons.lang3.StringUtils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.*;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhxl
 * @since 2021-09-06
 */
@Service
public class SiteServiceImpl extends ServiceImpl<SiteMapper, SitePO> implements SiteService {

    private static final Logger logger = LoggerFactory.getLogger(SiteServiceImpl.class);

    @Value("${twetec.resource.storage-root-path}")
    private String rootPath;

    @Override
    public String getStorageStaticPath(Long siteId) {
        String siteStaticFilePath;
        siteStaticFilePath = rootPath + File.separator + siteId + File.separator + "html";
        return siteStaticFilePath;
    }

}
